package proxyStatic;

/*
 * 项目名:    JavaProxy
 * 包名       PACKAGE_NAME
 * 文件名:    proxyStatic.StudentProxy
 * 创建者:    ZJB
 * 创建时间:  2017/10/26 on 15:39
 * 描述:     TODO
 */
public class StudentProxy implements Study {
    private Student student;

    public StudentProxy(Student student) {
        this.student = student;
    }

    @Override
    public void doHomeWork() {
        System.out.println("喝水");
        student.doHomeWork();
    }
}
